package com.sboot.shiro.biz.sys.user.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sboot.shiro.biz.sys.user.dao.SysUserMapper;
import com.sboot.shiro.biz.sys.user.po.SysUser;
import com.sboot.shiro.biz.sys.user.service.SysUserService;

@Service
public class SysUserServiceImpl implements SysUserService {

	@Autowired
	private SysUserMapper sysUserMapper;
	
	@Override
	public SysUser getById(String id) {
		return sysUserMapper.selectByPrimaryKey(id);
	}

	@Override
	public SysUser getUserByLoginName(String loginName) {
		return sysUserMapper.selectByLoginName(loginName);
	}

}
